import { ApiProperty } from '@nestjs/swagger';
import { SysDept } from '@/entities/admin/sys-dept.entity';

export class DeptDetailInfo extends SysDept {
  @ApiProperty({ description: '所属父级部门' })
  parent?: SysDept;
}

export class DeptList {
  @ApiProperty({ description: '部门ID' })
  id: number;

  @ApiProperty({ description: '部门名称' })
  name: string;

  @ApiProperty({ description: '父级部门ID' })
  parentId: string | number | null;

  // @ApiProperty({ description: '父级部门IDs' })
  // parentIds: [];

  // @ApiProperty({ description: '子部门' })
  // children?: DeptTree[];

  // @ApiProperty({ description: '是否删除' })
  // delFlag: number;

  @ApiProperty({ description: '启用状态' })
  status: number;
}
